<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>label标签的使用</title>
</head>
<body>
    <script>
        outer:for (let i = 1; i <= 10; i++) {
            inner:for (let j = 1; j <= 10; j++) {
                if(j%2 == 0){
                    console.log(i,j);
                }
                // 标签用于子层循环跳出外层循环
                if((i+j) > 10){
                    break outer;
                }
            }
            
        }
    </script>
</body>
</html>